package cn.assumejson.springframework.beans.factory.support;


/**
 * 一个空的Bean 为空时，不会报错，不会抱空指针
 *
 * @author Mr. Li
 * @version 1.0
 * @since 1.0 2021/12/1 14:33
 */
final class NullBean {
    public NullBean() {
    }

    @Override
    public boolean equals(Object obj) {
        return (this == obj || obj == null);
    }

    @Override
    public int hashCode() {
        return NullBean.class.hashCode();
    }

    @Override
    public String toString() {
        return "null";
    }
}
